package com.flyduck.vueshop.product.h5.controller;

import com.flyduck.vueshop.common.core.lang.Result;
import com.flyduck.vueshop.product.h5.service.H5HomeService;
import com.flyduck.vueshop.product.h5.vo.H5HomeDataRespVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @program: vueshop
 * @description:
 * @author: flyduck
 * @create: 2024-05-18 18:47
 **/
@RestController
@RequestMapping("/product/h5/home")
public class H5HomeController {

    @Resource
    private H5HomeService h5HomeService;

    @GetMapping("/getHomeData")
    public Result<H5HomeDataRespVO> getHomeData(){
        return Result.success(h5HomeService.getHomeData());
    }
}
